import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:oktoast/oktoast.dart';

class Home extends StatefulWidget {
  const Home({Key? key}) : super(key: key);

  @override
  _HomeState createState() => _HomeState();
}

class _HomeState extends State<Home> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        leading: Padding(
          padding: EdgeInsets.fromLTRB(15, 0, 15, 0),
          child: Image.asset("images/app_icon.png"),
        ),
        title: Text("建造师考试系统"),
        actions: [
          Container(
            margin: EdgeInsets.only(right: 50),
            alignment: Alignment.center,
            child: TextButton(
              child: Text(
                "小木屋科技有限公司",
                style: TextStyle(fontSize: 13, color: Color(0xffe9efe7)),
              ),
              onPressed: () {
                showToast("哈哈哈");
              },
            ),
          )
        ],
      ),
    );
  }
}
